package view;

import javax.swing.JFrame;

public class MainWindow extends JFrame {
	private GameCanvas gameCanvas;
	
	public MainWindow() {
		this.initialize();
	}
	
	private void initialize() {
		this.add(this.getGameCanvas());
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setTitle("Robert's Basement");
		this.pack();
	}
	
	private GameCanvas getGameCanvas() {
		if(this.gameCanvas == null) {
			this.gameCanvas = new GameCanvas();
			
		}
		return this.gameCanvas;
	}
}
